package com.shf.lease.web.admin.service.impl;
import java.util.Date;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.shf.lease.entity.AttrKey;
import com.shf.lease.entity.AttrValue;
import com.shf.lease.result.Result;
import com.shf.lease.web.admin.controller.apartment.response.AttrKeyVo;
import com.shf.lease.web.admin.mapper.AttrValueMapper;
import com.shf.lease.web.admin.service.AttrKeyService;
import com.shf.lease.web.admin.mapper.AttrKeyMapper;
import com.shf.lease.web.admin.service.AttrValueService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;
import java.util.function.Function;
import java.util.stream.Collectors;

/**
* @author 叶枫
* @description 针对表【attr_key(房间基本属性表)】的数据库操作Service实现
* @createDate 2024-07-04 19:56:12
*/
@Service
public class AttrKeyServiceImpl extends ServiceImpl<AttrKeyMapper, AttrKey>
    implements AttrKeyService{

    @Resource
    private AttrKeyMapper attrKeyMapper;
    @Override
    public Result<List<AttrKeyVo>> getAttrList() {
        List<AttrKeyVo> attrList = attrKeyMapper.getAttrList();
        return Result.ok(attrList);

    }


}




